<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>脊柱健康监测与康复指导系统</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            box-shadow: 0 0 30px rgba(0,0,0,0.1);
            border-radius: 10px;
            overflow: hidden;
        }

        .header {
            background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
            color: white;
            padding: 30px;
            text-align: center;
        }

        .header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .header .subtitle {
            font-size: 1.2em;
            opacity: 0.9;
            margin-bottom: 20px;
        }

        .user-info {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-top: 20px;
        }

        .user-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: rgba(255,255,255,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5em;
        }

        .user-details {
            text-align: left;
        }

        .user-details h3 {
            margin-bottom: 5px;
        }

        .user-details p {
            opacity: 0.8;
            font-size: 0.9em;
        }

        .nav {
            background: #34495e;
            padding: 0;
        }

        .nav-list {
            display: flex;
            list-style: none;
            justify-content: center;
            flex-wrap: wrap;
        }

        .nav-item {
            margin: 0;
        }

        .nav-link {
            display: block;
            color: white;
            text-decoration: none;
            padding: 15px 25px;
            transition: background 0.3s ease;
            border-radius: 0;
        }

        .nav-link:hover {
            background: #3498db;
        }

        .nav-link.active {
            background: #e74c3c;
        }

        .content {
            padding: 40px 30px;
        }

        .dashboard {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }

        .dashboard-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px;
            border-radius: 15px;
            text-align: center;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
            cursor: pointer;
        }

        .dashboard-card:hover {
            transform: translateY(-5px);
        }

        .dashboard-card h3 {
            font-size: 1.5em;
            margin-bottom: 15px;
        }

        .dashboard-card .icon {
            font-size: 3em;
            margin-bottom: 20px;
        }

        .dashboard-card .value {
            font-size: 2.5em;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .dashboard-card .label {
            font-size: 1.1em;
            opacity: 0.9;
        }

        .quick-actions {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }

        .action-card {
            background: #f8f9fa;
            padding: 25px;
            border-radius: 10px;
            border-left: 4px solid #3498db;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
        }

        .action-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        }

        .action-card h4 {
            color: #2c3e50;
            margin-bottom: 10px;
            font-size: 1.2em;
        }

        .action-card p {
            color: #7f8c8d;
            margin-bottom: 15px;
        }

        .action-btn {
            background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.9em;
            transition: background 0.3s ease;
        }

        .action-btn:hover {
            background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
        }

        .recent-activity {
            background: white;
            border-radius: 10px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            margin-top: 30px;
        }

        .activity-item {
            display: flex;
            align-items: center;
            padding: 15px 0;
            border-bottom: 1px solid #ecf0f1;
        }

        .activity-item:last-child {
            border-bottom: none;
        }

        .activity-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #3498db;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
        }

        .activity-content {
            flex: 1;
        }

        .activity-content h5 {
            margin-bottom: 5px;
            color: #2c3e50;
        }

        .activity-content p {
            color: #7f8c8d;
            font-size: 0.9em;
        }

        .activity-time {
            color: #95a5a6;
            font-size: 0.8em;
        }

        .footer {
            background: #2c3e50;
            color: white;
            text-align: center;
            padding: 20px;
            margin-top: 50px;
        }

        @media (max-width: 768px) {
            .header h1 {
                font-size: 2em;
            }
            
            .content {
                padding: 20px 15px;
            }
            
            .user-info {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
            
            .nav-list {
                flex-direction: column;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <header class="header">
            <h1>脊柱健康监测与康复指导系统</h1>
            <p class="subtitle">智能脊柱健康管理平台</p>
            <div class="user-info">
                <div class="user-avatar">👤</div>
                <div class="user-details">
                    <h3>张先生</h3>
                    <p>患者ID: P2024001 | 注册时间: 2024-01-15</p>
                </div>
            </div>
        </header>

        <nav class="nav">
            <ul class="nav-list">
                <li class="nav-item"><a href="index.html" class="nav-link active">🏠 首页</a></li>
                <li class="nav-item"><a href="posture-detection.html" class="nav-link">📷 姿势识别</a></li>
                <li class="nav-item"><a href="rehabilitation.html" class="nav-link">🏃 康复训练</a></li>
                <li class="nav-item"><a href="pain-record.html" class="nav-link">📊 疼痛记录</a></li>
                <li class="nav-item"><a href="data-analysis.html" class="nav-link">📈 数据分析</a></li>
                <li class="nav-item"><a href="doctor-portal.html" class="nav-link">👨‍⚕️ 医护端</a></li>
            </ul>
        </nav>

        <main class="content">
            <div class="dashboard">
                <div class="dashboard-card" onclick="location.href='posture-detection.html'">
                    <div class="icon">📷</div>
                    <div class="value">85</div>
                    <div class="label">今日姿势评分</div>
                    <h3>姿势识别</h3>
                </div>
                <div class="dashboard-card" onclick="location.href='rehabilitation.html'">
                    <div class="icon">🏃</div>
                    <div class="value">3/5</div>
                    <div class="label">今日训练完成</div>
                    <h3>康复训练</h3>
                </div>
                <div class="dashboard-card" onclick="location.href='pain-record.html'">
                    <div class="icon">📊</div>
                    <div class="value">2</div>
                    <div class="label">疼痛等级</div>
                    <h3>疼痛记录</h3>
                </div>
                <div class="dashboard-card" onclick="location.href='data-analysis.html'">
                    <div class="icon">📈</div>
                    <div class="value">7</div>
                    <div class="label">连续使用天数</div>
                    <h3>数据分析</h3>
                </div>
            </div>

            <div class="quick-actions">
                <div class="action-card" onclick="location.href='posture-detection.html'">
                    <h4>🎯 开始姿势检测</h4>
                    <p>使用摄像头检测当前坐姿或站姿，获得实时反馈和建议</p>
                    <button class="action-btn">立即检测</button>
                </div>
                <div class="action-card" onclick="location.href='rehabilitation.html'">
                    <h4>🏃 康复训练计划</h4>
                    <p>查看今日训练任务，跟随视频指导进行康复训练</p>
                    <button class="action-btn">开始训练</button>
                </div>
                <div class="action-card" onclick="location.href='pain-record.html'">
                    <h4>📝 记录疼痛情况</h4>
                    <p>记录今日的疼痛部位和程度，帮助医生了解康复进展</p>
                    <button class="action-btn">记录疼痛</button>
                </div>
                <div class="action-card" onclick="location.href='data-analysis.html'">
                    <h4>📊 查看健康报告</h4>
                    <p>查看详细的健康数据分析报告和趋势图表</p>
                    <button class="action-btn">查看报告</button>
                </div>
            </div>

            <div class="recent-activity">
                <h3>📋 最近活动</h3>
                <div class="activity-item">
                    <div class="activity-icon">📷</div>
                    <div class="activity-content">
                        <h5>姿势检测完成</h5>
                        <p>检测到坐姿不规范，建议调整座椅高度</p>
                    </div>
                    <div class="activity-time">2小时前</div>
                </div>
                <div class="activity-item">
                    <div class="activity-icon">🏃</div>
                    <div class="activity-content">
                        <h5>康复训练完成</h5>
                        <p>完成了颈椎拉伸训练，用时15分钟</p>
                    </div>
                    <div class="activity-time">4小时前</div>
                </div>
                <div class="activity-item">
                    <div class="activity-icon">📝</div>
                    <div class="activity-content">
                        <h5>疼痛记录更新</h5>
                        <p>记录了腰部轻微疼痛，等级2/10</p>
                    </div>
                    <div class="activity-time">昨天</div>
                </div>
                <div class="activity-item">
                    <div class="activity-icon">👨‍⚕️</div>
                    <div class="activity-content">
                        <h5>医生建议</h5>
                        <p>李医生建议增加腰部核心训练</p>
                    </div>
                    <div class="activity-time">2天前</div>
                </div>
            </div>
        </main>

        <footer class="footer">
            <p>&copy; 2024 脊柱健康监测与康复指导系统 | 智能健康管理平台</p>
        </footer>
    </div>
</body>
</html>
